const GEEK_TOKEN_KEY = 'geek-pc'
//设置token
export const setToken = (token) => localStorage.setItem(GEEK_TOKEN_KEY, token)

//获取token
export const getToken = () => localStorage.getItem(GEEK_TOKEN_KEY)

//删除token
export const delToken = () => localStorage.removeItem(GEEK_TOKEN_KEY)

//判断是否登陆
export const isAuth = () => !!getToken()
